<%@ page language="java" pageEncoding="UTF-8" %>
<!doctype html>
<html lang="zh-CN">
<head>
    <%@include file="/WEB-INF/views/commons/common.jsp" %>
    <link rel="stylesheet" type="text/css" href="${base_href}/static/ui-frame/bootstrap/3.3.5/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css"
          href="${base_href}/static/ui-frame/bootstrap-dialog3/css/bootstrap-dialog.css">
    <link rel="stylesheet" type="text/css"
          href="${base_href}/static/ui-frame/validation-engine/validationEngine.jquery.css">
    <link rel="stylesheet" type="text/css"
          href="${base_href}/static/ui-frame/jquery-easyui/1.4.3/themes/metro/easyui.css">
    <link rel="stylesheet" type="text/css"
          href="${base_href}/static/ui-frame/font-awesome/4.3.0/css/font-awesome.min.css">
    <link rel="stylesheet" type="text/css" href="${base_href}/static/ui-frame/webuploader/0.1.5/webuploader.css">
    <link rel="stylesheet" type="text/css" href="${base_href}/static/ui-frame/viewer/viewer.css">
    <link rel="stylesheet" type="text/css" href="${base_href}/static/ui-frame/ztree-v3/css/zTreeStyle/zTreeStyle.css">
    <link rel="stylesheet" type="text/css" href="${base_href}/static/css/search-theme.css">
    <link rel="stylesheet" type="text/css" href="${base_href}/static/css/form-theme.css">
    <title>创建班级</title>
</head>
<body data-spy="scroll" data-target="#myScrollspy" data-offset="350">
<div class="main-wrap">
    <!-- 工具条 start-->
    <div class="container-fluid form-body-header">
        <div class="container">
            <div class="row tool-bar">
                <div class="col-xs-12">
                    <button type="button" class="btn btn-sm tool-btn" id="closeBtn">关闭</button>
                </div>
            </div>
        </div>
    </div>
    <!-- 工具条 end-->

    <!-- 表单 start-->
    <div class="container-fluid">
        <form id="form">

            <input type="hidden" name="group.groupId" value="${form.group.groupId }"/>

            <div class="container form-body-div">
                <div class="row text-center title-body" id="baseinfo">
                    班级详细信息<br/>
                </div>

                <div class="row pannel-title">
                    <span>基本信息</span> <a href="javascript:void(0);" class="hide-next-btn">收起</a>
                </div>
                <div class="row pannel-body">
                    <table class="form-table">
                        <tr>
                            <th class="col-xs-2">创建人</th>
                            <td class="col-xs-4">
                                ${form.group.createUserName}
                            </td>
                            <th class="col-xs-2">创建时间</th>
                            <td class="col-xs-4">
                                <fmt:formatDate value="${form.group.createTime}" type="both"
                                                pattern="yyyy-MM-dd HH:mm"/>
                            </td>
                        </tr>
                        <tr>
                            <th class="col-xs-2 ">班级名称</th>
                            <td class="col-xs-4">
                                ${form.group.groupName}
                            </td>
                            <th class="col-xs-2">学员总数</th>
                            <td class="col-xs-4">
                                ${form.groupUsers.size() }
                            </td>
                        </tr>
                    </table>
                </div>

                <div class="row pannel-title">
                    <span>学生信息</span> <a href="javascript:void(0);" class="hide-next-btn">收起</a>
                </div>
                <div class="row pannel-body">
                    <table class="form-table student">
                        <tr id="studentTitle" data-index="${form.groupUsers.size() }">
                            <th class="col-xs-1">
                                序号
                            </th>
                            <th class="col-xs-4">
                                学生账号
                            </th>
                            <th class="col-xs-4">
                                学生姓名
                            </th>
                            <th class="col-xs-2 ">
                                操作
                            </th>
                        </tr>
                        <c:forEach items="${form.groupUsers}" var="detail" varStatus="status">
                            <tr class="quesDetail">
                                <td class="col-xs-1 ">
                                        ${status.index + 1}
                                </td>
                                <td class="col-xs-4">
                                    <input type="hidden" name="groupUsers[${status.index }].userId"
                                           value="${detail.userId}">
                                    <input type="hidden" name="groupUsers[${status.index }].groupId"
                                           value="${detail.groupId}">
                                        ${detail.userAccount}
                                </td>
                                <td class="col-xs-4 ">
                                        ${detail.userName}
                                </td>
                                <td class="col-xs-2 ">
                                </td>
                            </tr>
                        </c:forEach>
                    </table>
                </div>
            </div>
        </form>
    </div>
    <!-- 表单 end-->

</div>
<script type="text/javascript" src="${base_href}/static/ui-frame/jquery/1.11.3/jquery.js"></script>
<script type="text/javascript" src="${base_href}/static/ui-frame/bootstrap/3.3.5/js/bootstrap.js"></script>
<script type="text/javascript" src="${base_href}/static/ui-frame/bootstrap-dialog3/js/bootstrap-dialog.js"></script>
<script type="text/javascript"
        src="${base_href}/static/ui-frame/validation-engine/jquery.validationEngine-zh_CN.js"></script>
<script type="text/javascript" src="${base_href}/static/ui-frame/validation-engine/jquery.validationEngine.js"></script>
<script type="text/javascript" src="${base_href}/static/ui-frame/My97DatePicker/WdatePicker.js"></script>

<script type="text/javascript">
    $(function () {


        $("#closeBtn").click(function () {
            window.close();
        });


    });
</script>
</body>
</html>
